package calcPatterns;

public class MathProxy implements IMath, IMathAdvanced {
    
    IMath simpleCalc = Math.getInstance();
    IMathAdvanced coolCalc = Math.getInstance();
    
    @Override
    public double add(double num1, double num2) {
        return simpleCalc.add(num1, num2);
    }
    
    @Override
    public double sub(double num1, double num2) {
        return simpleCalc.sub(num1, num2);
    }
    
    @Override
    public double mul(double num1, double num2) {
        return simpleCalc.mul(num1, num2);
    }
    
    @Override
    public double div(double num1, double num2) {
        return simpleCalc.div(num1, num2);
    }

    @Override
    public double exp(int num) {
        return coolCalc.exp(num);
    }

    @Override
    public int decimalToOctal(int num) {
       return coolCalc.decimalToOctal(num);
    }
}
